ACLOCAL_AMFLAGS = -I m4

AM_CPPFLAGS = -I$(top_srcdir)/src
LDADD = $(top_builddir)/src/libsds.la

EXTRA_DIST = \
	LICENSE

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =

noinst_PROGRAMS =
lib_LTLIBRARIES =

include src/Makefile.am

MRPROPERFILES = \
	aclocal.m4 \
	config.h.in \
	config.h.in~ \
	configure \
	Makefile.in \
	build-aux/config.guess \
	build-aux/config.sub \
	build-aux/depcomp \
	build-aux/install-sh \
	build-aux/ltmain.sh \
	build-aux/missing \
	build-aux

mrproper:
	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
	-rm -f $(MRPROPERFILES)

deb:
	dpkg-buildpackage -rfakeroot

rpm: dist
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz

dist-bz2: dist
	zcat $(PACKAGE)-$(VERSION).tar.gz | \
	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2

distcheck-bz2: distcheck
	zcat $(PACKAGE)-$(VERSION).tar.gz | \
	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2

.PHONY: mrproper deb rpm dist-bz2 distcheck-bz2
